\name{suggestPath}
\alias{suggestPath}
\title{
  Suggest a Path to a Specified Program
}
\description{
  Suggest a directory path from the system \code{PATH} where a 
  program specified by the user might be located.
}
\usage{
suggestPath(progs, ipath = NULL, file_ext = NULL)
}
\arguments{
  \item{progs}{string vector of program names without the extension (assumes \code{.exe} in Windows). Unix programs do not have extensions.}
  \item{ipath}{string specified by the user as the initial path (directory) to check before checking all other directories on the \code{PATH}.}
  \item{file_ext}{user can specify an alternative extension if the program does not end in \code{.exe}}.
}
\details{
  This function determines whether the specified programs can be located on the user's system.
  
  A wrapper function called \code{.win.suggestPath} is used by the \pkg{PBSadmb} GUI to suggest
  paths for the ADMB home, the Windows MinGW home, and an editor.
}
\value{
  Returns a logical vector where each element corresponds to a program searched. 
  If the element is {TRUE}, then the program was found on the path, 
  which is supplied as the name of the vector element.
  If the element is {FALSE}, the program may exist on the user's system, 
  but is not in any of the directories specified by the \code{PATH} environment of the system.
  
  The returned vector has a list attribute where each item in the list corresponds to each
  element in the vector, and shows the results of the search for each of the directories.
}
\author{
  Rowan Haigh, Pacific Biological Station, Fisheries and Oceans Canada, Nanaimo BC
}
\seealso{
\code{\link[PBSadmb]{setADMBpath}}
}
\keyword{ utilites }
\keyword{ sysdata }


